﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta charset="utf-8" />
    <title>默认页面</title>
    <script src="test.js"></script>
    <style>
        /* 禁止选择文本 */
        body {
            zoom: reset;
            /* 还原缩放 */
            zoom: 100%;
            /* 禁止缩放 */
            -webkit-user-select: none; /* Safari */
            -moz-user-select: none; /* Firefox */
            -ms-user-select: none; /* IE 10+ */
            user-select: none; /* 标准语法 */
        }
    </style>
    <script>
        document.addEventListener('mousewheel', function (e) {
            e = e || window.event;
            if ((e.wheelDelta && event.ctrlKey) || e.detail) {
                event.preventDefault();
            }
        }, { capture: false, passive: false });
        document.addEventListener('keydown', function (event) {
            if ((event.ctrlKey === true || event.metaKey === true)
                && (event.keyCode === 61 || event.keyCode === 107
                    || event.keyCode === 173 || event.keyCode === 109
                    || event.keyCode === 187 || event.keyCode === 189)) {
                event.preventDefault();
            }
        }, false);
        document.addEventListener('touchmove', function (event) {
            event.preventDefault();
        }, { passive: false });

        document.addEventListener('dragstart', function (event) {
            event.preventDefault();
        }, false);
    </script>

</head>
<body>
    <span>这是一个为ttengine开发工具的浏览器壳，主要对本地文件访问做了扩展</span>
    <br />
    <span>修改index.json中的startpage文件名，即可将此页面换成你自己的. </span>
    <br />
    <span>可以通过扩展端口访问本地</span>
    <br />
    <span>
        var searchParams = new URLSearchParams(window.location.search);
    </span> <br />
    <span>
        var extport = searchParams.get('_localext_');
    </span>
    <span>
        通过上述代码，获取扩展端口
    </span>
    <br />
</body>
</html>